<template>
	<om-page :title="pageTitle">
		<view class="page__bd">
			<uni-list>
				<view v-for="(item, index) in datas" :key="index">
					<uni-list-item  @click="onClick(item)" :data-index="index">
						<view class="flex">
							{{'表单编码:' + item.code}}
						</view>
					</uni-list-item>
				</view>
			</uni-list>
		</view>
	</om-page>
</template>

<script>
	export default{
		data(){
			return {
				pageTitle:"",
				datas:[],
				businessLeaveCache:"hr-kq-overtime-businessLeave-cache"
			}
		},
		methods:{
			onClick(item){
				this.om.getFormInfoByFileCode(item.code, item.busCode)
			}
		},
		onLoad() {
			uni.getStorage({
				key:this.businessLeaveCache,
				success:(res)=>{
					if(res.data){
						this.datas = res.data
					}
					uni.removeStorage({
						ke:this.businessLeaveCache
					})
				}
			})
		}
	}
</script>

<style>
</style>
